package com.zjx.thread;

import org.openjdk.jol.info.ClassLayout;

/**
 * @author zhaojiaxu
 * @date 2021/08/27 11:01
 **/
public class ObjectPrintable {
	public static void main(String[] args) {
		Object o = new Object();
		new Thread(()->{
			synchronized (o){
				 System.out.println(ClassLayout.parseInstance(o).toPrintable());
			}
		},"t1").start();
	//	System.out.println(ClassLayout.parseInstance(o).toPrintable());
	}
}

